.class public Lcom/brixd/niceapp/activity/WebViewActivity;
.super Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;
.source "WebViewActivity.java"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "SetJavaScriptEnabled"
    }
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/activity/WebViewActivity$WebViewDownLoadListener;
    }
.end annotation


# static fields
.field private static FILECHOOSER_RESULTCODE:I = 0x0

.field public static final KEY_DATA:Ljava/lang/String; = "Data"

.field public static final KEY_TITLE:Ljava/lang/String; = "Title"

.field public static final KEY_URL:Ljava/lang/String; = "URL"


# instance fields
.field private mBrowserBack:Landroid/view/View;

.field private mBrowserForward:Landroid/view/View;

.field private mBrowserRefresh:Landroid/view/View;

.field private mData:Ljava/lang/String;

.field private mLinkHandler:Lcom/brixd/niceapp/util/LinkHandler;

.field private mShareView:Landroid/view/View;

.field private mTitle:Ljava/lang/String;

.field private mUploadMessage:Landroid/webkit/ValueCallback;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/webkit/ValueCallback",
            "<",
            "Landroid/net/Uri;",
            ">;"
        }
    .end annotation
.end field

.field private mUrl:Ljava/lang/String;

.field private mWebView:Landroid/webkit/WebView;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 46
    const/16 v0, 0x2775

    sput v0, Lcom/brixd/niceapp/activity/WebViewActivity;->FILECHOOSER_RESULTCODE:I

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .prologue
    .line 30
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;-><init>()V

    .line 267
    return-void
.end method

.method static synthetic access$000(Lcom/brixd/niceapp/activity/WebViewActivity;)Ljava/lang/String;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/WebViewActivity;

    .prologue
    .line 30
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mTitle:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$102(Lcom/brixd/niceapp/activity/WebViewActivity;Landroid/webkit/ValueCallback;)Landroid/webkit/ValueCallback;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/WebViewActivity;
    .param p1, "x1"    # Landroid/webkit/ValueCallback;

    .prologue
    .line 30
    iput-object p1, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mUploadMessage:Landroid/webkit/ValueCallback;

    return-object p1
.end method

.method static synthetic access$200()I
    .registers 1

    .prologue
    .line 30
    sget v0, Lcom/brixd/niceapp/activity/WebViewActivity;->FILECHOOSER_RESULTCODE:I

    return v0
.end method

.method static synthetic access$300(Lcom/brixd/niceapp/activity/WebViewActivity;)Lcom/brixd/niceapp/util/LinkHandler;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/WebViewActivity;

    .prologue
    .line 30
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mLinkHandler:Lcom/brixd/niceapp/util/LinkHandler;

    return-object v0
.end method

.method static synthetic access$400(Lcom/brixd/niceapp/activity/WebViewActivity;)V
    .registers 1
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/WebViewActivity;

    .prologue
    .line 30
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/WebViewActivity;->updateBtnStatus()V

    return-void
.end method

.method static synthetic access$500(Lcom/brixd/niceapp/activity/WebViewActivity;)Landroid/webkit/WebView;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/WebViewActivity;

    .prologue
    .line 30
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    return-object v0
.end method

.method static synthetic access$600(Lcom/brixd/niceapp/activity/WebViewActivity;)Ljava/lang/String;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/WebViewActivity;

    .prologue
    .line 30
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mUrl:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$700(Lcom/brixd/niceapp/activity/WebViewActivity;)Ljava/lang/String;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/WebViewActivity;

    .prologue
    .line 30
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mData:Ljava/lang/String;

    return-object v0
.end method

.method private initData()V
    .registers 3

    .prologue
    .line 71
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/WebViewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "URL"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mUrl:Ljava/lang/String;

    .line 72
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/WebViewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "Data"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mData:Ljava/lang/String;

    .line 73
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/WebViewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "Title"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mTitle:Ljava/lang/String;

    .line 74
    return-void
.end method

.method private initWidgetsActions()V
    .registers 3

    .prologue
    .line 193
    new-instance v0, Lcom/brixd/niceapp/activity/WebViewActivity$3;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/WebViewActivity$3;-><init>(Lcom/brixd/niceapp/activity/WebViewActivity;)V

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/WebViewActivity;->setOnBackClickListener(Landroid/view/View$OnClickListener;)V

    .line 201
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mBrowserBack:Landroid/view/View;

    new-instance v1, Lcom/brixd/niceapp/activity/WebViewActivity$4;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/WebViewActivity$4;-><init>(Lcom/brixd/niceapp/activity/WebViewActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 212
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mBrowserForward:Landroid/view/View;

    new-instance v1, Lcom/brixd/niceapp/activity/WebViewActivity$5;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/WebViewActivity$5;-><init>(Lcom/brixd/niceapp/activity/WebViewActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 223
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mBrowserRefresh:Landroid/view/View;

    new-instance v1, Lcom/brixd/niceapp/activity/WebViewActivity$6;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/WebViewActivity$6;-><init>(Lcom/brixd/niceapp/activity/WebViewActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 236
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mShareView:Landroid/view/View;

    new-instance v1, Lcom/brixd/niceapp/activity/WebViewActivity$7;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/WebViewActivity$7;-><init>(Lcom/brixd/niceapp/activity/WebViewActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 250
    return-void
.end method

.method private updateBtnStatus()V
    .registers 3

    .prologue
    .line 253
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mBrowserBack:Landroid/view/View;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->canGoBack()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 254
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mBrowserForward:Landroid/view/View;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v1}, Landroid/webkit/WebView;->canGoForward()Z

    move-result v1

    invoke-virtual {v0, v1}, Landroid/view/View;->setEnabled(Z)V

    .line 255
    return-void
.end method


# virtual methods
.method protected initWidgets()V
    .registers 8

    .prologue
    const/4 v3, 0x0

    const/4 v6, 0x1

    .line 78
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/WebViewActivity;->getSwipeBackLayout()Lcom/brixd/android/swipeback/lib/SwipeBackLayout;

    move-result-object v2

    invoke-virtual {v2, v3}, Lcom/brixd/android/swipeback/lib/SwipeBackLayout;->setEnableGesture(Z)V

    .line 79
    const v2, 0x7f0200b2

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/WebViewActivity;->setBackIcon(I)V

    .line 80
    new-instance v1, Landroid/widget/ImageView;

    invoke-direct {v1, p0}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 81
    .local v1, "imageView":Landroid/widget/ImageView;
    const v2, 0x7f020041

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 82
    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/WebViewActivity;->setRightActionAreaView(Landroid/view/View;)V

    .line 83
    iput-object v1, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mShareView:Landroid/view/View;

    .line 85
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mTitle:Ljava/lang/String;

    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_2c

    .line 86
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mTitle:Ljava/lang/String;

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/WebViewActivity;->setTopTitle(Ljava/lang/String;)V

    .line 89
    :cond_2c
    const v2, 0x7f0a01d6

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/WebViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mBrowserBack:Landroid/view/View;

    .line 90
    const v2, 0x7f0a01d7

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/WebViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mBrowserForward:Landroid/view/View;

    .line 91
    const v2, 0x7f0a01d8

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/WebViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    iput-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mBrowserRefresh:Landroid/view/View;

    .line 93
    const v2, 0x7f0a01d4

    invoke-virtual {p0, v2}, Lcom/brixd/niceapp/activity/WebViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/webkit/WebView;

    iput-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    .line 94
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 95
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/webkit/WebSettings;->setBuiltInZoomControls(Z)V

    .line 96
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    invoke-virtual {v2, v3}, Landroid/webkit/WebSettings;->setDisplayZoomControls(Z)V

    .line 97
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    const/4 v3, -0x1

    invoke-virtual {v2, v3}, Landroid/webkit/WebSettings;->setCacheMode(I)V

    .line 98
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V

    .line 99
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/webkit/WebSettings;->setAppCacheEnabled(Z)V

    .line 100
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/webkit/WebSettings;->setDomStorageEnabled(Z)V

    .line 101
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    const-wide/32 v4, 0x400000

    invoke-virtual {v2, v4, v5}, Landroid/webkit/WebSettings;->setAppCacheMaxSize(J)V

    .line 102
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/webkit/WebSettings;->setUseWideViewPort(Z)V

    .line 103
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/webkit/WebSettings;->setLoadWithOverviewMode(Z)V

    .line 104
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    const-string v3, "nice-app"

    invoke-virtual {v2, v3}, Landroid/webkit/WebSettings;->setUserAgentString(Ljava/lang/String;)V

    .line 105
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v3, Lcom/brixd/niceapp/activity/WebViewActivity$WebViewDownLoadListener;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/WebViewActivity$WebViewDownLoadListener;-><init>(Lcom/brixd/niceapp/activity/WebViewActivity;)V

    invoke-virtual {v2, v3}, Landroid/webkit/WebView;->setDownloadListener(Landroid/webkit/DownloadListener;)V

    .line 107
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/WebViewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getCacheDir()Ljava/io/File;

    move-result-object v2

    invoke-virtual {v2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    .line 108
    .local v0, "appCachePath":Ljava/lang/String;
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/webkit/WebSettings;->setAppCachePath(Ljava/lang/String;)V

    .line 109
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v2}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/webkit/WebSettings;->setAllowFileAccess(Z)V

    .line 110
    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v2

    invoke-virtual {v2, v6}, Landroid/webkit/CookieManager;->setAcceptCookie(Z)V

    .line 112
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v3, Lcom/brixd/niceapp/activity/WebViewActivity$1;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/WebViewActivity$1;-><init>(Lcom/brixd/niceapp/activity/WebViewActivity;)V

    invoke-virtual {v2, v3}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    .line 151
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v3, Lcom/brixd/niceapp/activity/WebViewActivity$2;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/WebViewActivity$2;-><init>(Lcom/brixd/niceapp/activity/WebViewActivity;)V

    invoke-virtual {v2, v3}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 190
    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .registers 7
    .param p1, "requestCode"    # I
    .param p2, "resultCode"    # I
    .param p3, "intent"    # Landroid/content/Intent;

    .prologue
    const/4 v1, 0x0

    .line 291
    sget v2, Lcom/brixd/niceapp/activity/WebViewActivity;->FILECHOOSER_RESULTCODE:I

    if-ne p1, v2, :cond_9

    .line 292
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mUploadMessage:Landroid/webkit/ValueCallback;

    if-nez v2, :cond_a

    .line 298
    :cond_9
    :goto_9
    return-void

    .line 294
    :cond_a
    if-eqz p3, :cond_f

    const/4 v2, -0x1

    if-eq p2, v2, :cond_18

    :cond_f
    move-object v0, v1

    .line 295
    .local v0, "result":Landroid/net/Uri;
    :goto_10
    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mUploadMessage:Landroid/webkit/ValueCallback;

    invoke-interface {v2, v0}, Landroid/webkit/ValueCallback;->onReceiveValue(Ljava/lang/Object;)V

    .line 296
    iput-object v1, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mUploadMessage:Landroid/webkit/ValueCallback;

    goto :goto_9

    .line 294
    .end local v0    # "result":Landroid/net/Uri;
    :cond_18
    invoke-virtual {p3}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v0

    goto :goto_10
.end method

.method public onBackPressed()V
    .registers 2

    .prologue
    .line 259
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->canGoBack()Z

    move-result v0

    if-eqz v0, :cond_11

    .line 260
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v0}, Landroid/webkit/WebView;->goBack()V

    .line 261
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/WebViewActivity;->updateBtnStatus()V

    .line 265
    :goto_10
    return-void

    .line 263
    :cond_11
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/WebViewActivity;->finish()V

    goto :goto_10
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 8
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    const/4 v1, 0x0

    .line 52
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onCreate(Landroid/os/Bundle;)V

    .line 53
    const v0, 0x7f03008a

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/WebViewActivity;->setContentView(I)V

    .line 55
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/WebViewActivity;->initData()V

    .line 56
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/WebViewActivity;->initWidgets()V

    .line 57
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/WebViewActivity;->initWidgetsActions()V

    .line 58
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/WebViewActivity;->updateBtnStatus()V

    .line 60
    new-instance v0, Lcom/brixd/niceapp/util/LinkHandler;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/util/LinkHandler;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mLinkHandler:Lcom/brixd/niceapp/util/LinkHandler;

    .line 62
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mUrl:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_34

    .line 63
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mUrl:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 67
    :cond_2c
    :goto_2c
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mUrl:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 68
    return-void

    .line 64
    :cond_34
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mData:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2c

    .line 65
    iget-object v0, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mWebView:Landroid/webkit/WebView;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/WebViewActivity;->mData:Ljava/lang/String;

    const-string v3, "text/html"

    const-string v4, "UTF-8"

    move-object v5, v1

    invoke-virtual/range {v0 .. v5}, Landroid/webkit/WebView;->loadDataWithBaseURL(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_2c
.end method
